<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>用户组管理</title>
    <link href='Public/hdjs/hdjs.css' rel='stylesheet' media='screen'>
    <link rel="stylesheet" type="text/css" href="Public/Admin/css/mod.base.css"/>
    <script type='text/javascript' src='Public/Admin/js/jquery-1.8.2.min.js'></script>
    <script type='text/javascript' src='Public/hdjs/hdjs.min.js'></script>
    <script type='text/javascript' src='Public/hdjs/lhgcalendar.min.js'></script>
    <script src="Public/Admin/js/mod.base.js" type="text/javascript" charset="utf-8"></script>
    <script src="Public/Admin/js/mod.rule.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
    <div class="hd-menu-list">
        <ul>
            <li class="active">
                <a href="javascript:;">用户组列表</a>
            </li>
            <li>
                <a href="<?php echo U('AuthGroup/add')?>">添加用户组</a>
            </li>

        </ul>
    </div>
    <div class="content">
        <table class="hd-table hd-table-list hd-form">
            <thead>
                <tr>
                    <td class="hd-w30"typeid</td>
                    <td>用户组名称</td>
                    <td>状态</td>
                    <td class="hd-w150">操作</td>
                </tr>
            </thead>
            <tbody>
            <?php if($data){?>
                
                <?php foreach ($data as $v){?>
                <tr>
                    <td><?php echo $v['id']?></td>
                    <td><?php echo $v['name']?></td>
                    <td><?php if($v['status']==1){?>
                启用<?php }else{?>禁用
               <?php }?></td>
                    <td>
                        <a href="<?php echo U('AuthGroup/rule',array('id'=>$v['id']))?>">分配权限</a>
                        |
                        <a href="<?php echo U('AuthGroup/edit',array('id'=>$v['id']))?>">修改</a>
                        |
                        <a href="javascript:;" onclick="del_modal('<?php echo U('AuthGroup/del',array('id'=>$v['id']))?>')">删除</a>
                    </td>
                </tr>
                <?php }?>
            <?php }else{?>
                <tr>
                	<td colspan="3">没有找到符合条件的记录</td>
                </tr>
            
               <?php }?>
            </tbody>
        </table>
    </div>


</body>
</html>